<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>
        Edit Page
    </title>
</head>
<body>
    <form action ="{% url 'blog:edit_action' %}" method="post">
        {% csrf_token %}
        <input type="hidden" name="article_id" value="{{ article.id | default : '0' }}">
        <p>
            <label>文章标题
                <input type="text" name="title" value="{{ article.title }}">
            </label>
        </p>
        <p>
            <label>文章内容
                <input type="text" name="content" value="{{ article.content }}">
            </label>
        </p>
        <input type="submit" value="提交">
    </form>
</body>
</html>